const express = require('express')
// const fs =require('fs')
const cors = require('cors')
const app = express()
const path = require('path');
app.use(cors())
app.use(express.static(path.join(__dirname,'dist')))
// app.use('/dev-api',function(req,res){
//     res.setHeader('Content-Type','text/html');
//     var html= fs.readFileSync(path.join(__dirname, 'dist/index.html'));
//     res.end(html)
// })

app.listen(9529, () => {
    console.log('server runing at http://127.0.0.1:9529');
})
